#!/usr/bin/env python3
# -*- coding:utf-8 -*-

# https://blog.csdn.net/github_39655029/article/details/80144073
# 绘制蟒蛇

import turtle


def main():
    printer = turtle.Turtle()
    printer.penup()
    printer.pencolor("red")
    printer.forward(-250)
    printer.pendown()
    printer.pensize(10)
    printer.right(45)
    for i in range(4):
        printer.circle(40, 80)
        printer.circle(-40, 80)
    printer.circle(40, 80 / 2)
    printer.fd(40)
    printer.circle(16, 180)
    printer.fd(40 * 2 / 3)
    turtle.done()


if __name__ == "__main__":
    main()
